package com.czp.user.model;

import com.czp.framework.model.BaseModelSupport;

public class User extends BaseModelSupport {
	private static final long serialVersionUID = -3205363677122063626L;
	private Integer id;			//主键ID
	private Integer personId;	//人员Id
	private String name;		//姓名
	private String username;	//用户名
	private String password;	//密码
	private String passPrompt;	//密码提示
	private char enableStatus;	//使用状态
	private String email;		//邮箱
	private Integer age;		//年龄
	private String sex;			//性别 1男 0女
	private String remark;		//备注
	private String oldPass;		//旧密码
	
	private String personName;	//人员姓名
	private String mobile;		//电话号码
	
	/**
	 * 获取 id
	 * @return 返回 id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置 id
	 * @param 对id进行赋值
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取 personId
	 * @return 返回 personId
	 */
	public Integer getPersonId() {
		return personId;
	}
	/**
	 * 设置 personId
	 * @param 对personId进行赋值
	 */
	public void setPersonId(Integer personId) {
		this.personId = personId;
	}
	/**
	 * 获取 name
	 * @return 返回 name
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置 name
	 * @param 对name进行赋值
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取 username
	 * @return 返回 username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * 设置 username
	 * @param 对username进行赋值
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**
	 * 获取 password
	 * @return 返回 password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * 设置 password
	 * @param 对password进行赋值
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * 获取 passPrompt
	 * @return 返回 passPrompt
	 */
	public String getPassPrompt() {
		return passPrompt;
	}
	/**
	 * 设置 passPrompt
	 * @param 对passPrompt进行赋值
	 */
	public void setPassPrompt(String passPrompt) {
		this.passPrompt = passPrompt;
	}
	/**
	 * 获取 enableStatus
	 * @return 返回 enableStatus
	 */
	public char getEnableStatus() {
		return enableStatus;
	}
	/**
	 * 设置 enableStatus
	 * @param 对enableStatus进行赋值
	 */
	public void setEnableStatus(char enableStatus) {
		this.enableStatus = enableStatus;
	}
	/**
	 * 获取 email
	 * @return 返回 email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * 设置 email
	 * @param 对email进行赋值
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * 获取 age
	 * @return 返回 age
	 */
	public Integer getAge() {
		return age;
	}
	/**
	 * 设置 age
	 * @param 对age进行赋值
	 */
	public void setAge(Integer age) {
		this.age = age;
	}
	/**
	 * 获取 sex
	 * @return 返回 sex
	 */
	public String getSex() {
		return sex;
	}
	/**
	 * 设置 sex
	 * @param 对sex进行赋值
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}
	/**
	 * 获取 remark
	 * @return 返回 remark
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置 remark
	 * @param 对remark进行赋值
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取 oldPass
	 * @return 返回 oldPass
	 */
	public String getOldPass() {
		return oldPass;
	}
	/**
	 * 设置 oldPass
	 * @param 对oldPass进行赋值
	 */
	public void setOldPass(String oldPass) {
		this.oldPass = oldPass;
	}
	/**
	 * 获取 personName
	 * @return 返回 personName
	 */
	public String getPersonName() {
		return personName;
	}
	/**
	 * 设置 personName
	 * @param 对personName进行赋值
	 */
	public void setPersonName(String personName) {
		this.personName = personName;
	}
	/**
	 * 获取 mobile
	 * @return 返回 mobile
	 */
	public String getMobile() {
		return mobile;
	}
	/**
	 * 设置 mobile
	 * @param 对mobile进行赋值
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	/**
	 * 【重载方法】
	 * @return
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "User [age=" + age + ", email=" + email + ", enableStatus="
				+ enableStatus + ", id=" + id + ", mobile=" + mobile
				+ ", name=" + name + ", oldPass=" + oldPass + ", passPrompt="
				+ passPrompt + ", password=" + password + ", personId="
				+ personId + ", personName=" + personName + ", remark="
				+ remark + ", sex=" + sex + ", username=" + username + "]";
	}
	/**
	 * 【重载方法】
	 * @return
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((age == null) ? 0 : age.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + enableStatus;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((mobile == null) ? 0 : mobile.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((oldPass == null) ? 0 : oldPass.hashCode());
		result = prime * result
				+ ((passPrompt == null) ? 0 : passPrompt.hashCode());
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result
				+ ((personId == null) ? 0 : personId.hashCode());
		result = prime * result
				+ ((personName == null) ? 0 : personName.hashCode());
		result = prime * result + ((remark == null) ? 0 : remark.hashCode());
		result = prime * result + ((sex == null) ? 0 : sex.hashCode());
		result = prime * result
				+ ((username == null) ? 0 : username.hashCode());
		return result;
	}
	/**
	 * 【重载方法】
	 * @param obj
	 * @return
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (age == null) {
			if (other.age != null)
				return false;
		} else if (!age.equals(other.age))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (enableStatus != other.enableStatus)
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (mobile == null) {
			if (other.mobile != null)
				return false;
		} else if (!mobile.equals(other.mobile))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (oldPass == null) {
			if (other.oldPass != null)
				return false;
		} else if (!oldPass.equals(other.oldPass))
			return false;
		if (passPrompt == null) {
			if (other.passPrompt != null)
				return false;
		} else if (!passPrompt.equals(other.passPrompt))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (personId == null) {
			if (other.personId != null)
				return false;
		} else if (!personId.equals(other.personId))
			return false;
		if (personName == null) {
			if (other.personName != null)
				return false;
		} else if (!personName.equals(other.personName))
			return false;
		if (remark == null) {
			if (other.remark != null)
				return false;
		} else if (!remark.equals(other.remark))
			return false;
		if (sex == null) {
			if (other.sex != null)
				return false;
		} else if (!sex.equals(other.sex))
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		return true;
	}
	
}
